package com.atlzk.group.order.feign;

import com.atlzk.common.utils.R;
import com.atlzk.group.tgou.entity.KanshopEntity;
import com.atlzk.group.tgou.entity.MiaoShopEntity;
import com.atlzk.group.tgou.entity.TgouEntity;
import org.springframework.cloud.openfeign.FeignClient;
import org.springframework.web.bind.annotation.*;

import java.util.List;

/**
 * @author King
 * @date 2021/6/19 - 11:06
 */
@FeignClient("group-sms")
public interface TgouFeignService {
    @RequestMapping("/tgou/tgou/byId")
    public R byId(@RequestParam("smsTgouId") Long smsTgouId);

    @RequestMapping("/tgou/tgou/byTgouId")
    public TgouEntity byTgouId( @RequestParam("smsTgouId") Long smsTgouId);

    @RequestMapping("/tgou/tgou/update")
    public R update(@RequestBody TgouEntity tgou);

    @RequestMapping("/tgou/kanshop/ById/{smsKanshopId}")
    public KanshopEntity ById(@PathVariable("smsKanshopId") Long smsKanshopId);

    /**
     * 信息
     */
    @RequestMapping("/tgou/miaoshop/miaoShopbyId/{smsMshopId}")
    public MiaoShopEntity MiaoShopbyId(@PathVariable("smsMshopId") Long smsMshopId);


    /**
     * 修改
     */
    @RequestMapping("/tgou/miaoshop/subtractRepertory")
    public R subtractRepertory(@RequestBody MiaoShopEntity miaoShop);

    @GetMapping("/tgou/miaoshop/miaoShoplist")
    public List <MiaoShopEntity> miaoShoplist() ;
}
